package com.aabte.design2.behavioral.chain.v3;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/5/3
 */
public class Application {

    public static void main(String[] args) {

        Dialog dialog = new Dialog("预算报告");
        dialog.setWikiPageURL("http://diaglog2.com");

        Panel panel = new Panel(0, 0, 400, 800);
        panel.setModalHelpText("本面板用于...");

        Button okButton = new Button(250, 760, 50, 20, "确认");
        okButton.setTooltipText("这是一个确认按钮");

        Button cancelButton = new Button(320, 760, 50, 20, "取消");

        panel.add(okButton);
        panel.add(cancelButton);
        dialog.add(panel);

        okButton.showHelp();
        cancelButton.showHelp();


    }

}
